// NFC_04 [Applet class].nova // Using namespace declarations. using Library.NFC; // The applet class. class AppletClassApplet : Applet { // Application class's "main" function. public static void main( String[ ] args ) { // Create a new applet window with a new applet instance. AppletWindow window = new AppletWindow( new AppletClassApplet( ), "NFC_04 [Applet class]", 320, 240 ); // Show the applet window. window.show( true ); // Process the applet window's events. window.processEvents( ); } // On paint event handler. public virtual void onPaint( ) { // Draw some text within the applet. graphics.drawString( "Applet class", 50, 25 ); } }